home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / Technical.Notes / IIGS / TN.IIGS.062 < prev    next >
Encoding:
Text File  |  1989-08-20  |  1.6 KB  |  34 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple IIGS
  8. #62:    No Non-Solid Window Background Patterns
  9.  
  10. Written by:    Dave Lyons                                           July 1989
  11.  
  12. This Technical Note discusses why window background patterns should always be 
  13. solid; non-solid patterns are not always drawn with the expected alignment.
  14. _____________________________________________________________________________
  15.  
  16. When the Window Manager erases part of a window's content area to its port's 
  17. background pattern, it is not always aligned with already-drawn parts of the 
  18. window.  With a solid background pattern, this has no visible effect; however, 
  19. if you try to use a grid, for example, the effect is obvious.
  20.  
  21. To simulate a non-solid background pattern, just erase the desired area to the 
  22. pattern you want in your update routine.  For best results, use a solid 
  23. background pattern of the color most common in the pattern you really want.
  24.  
  25. For example, if you want a white grid on a black background, give the window a 
  26. solid black background pattern, and use FillRect during the update routine to 
  27. draw the grid.  If you keep the default white background pattern, the end 
  28. result will be the same, but your window content will briefly be solid white 
  29. before your update routine fills it with your pattern.
  30.  
  31.  
  32. Further Reference
  33. _____________________________________________________________________________
  34.     o    Apple IIGS Toolbox Reference, Volume 2